#连接已有数据库
from app.db_connections import Connection
# jys_db=Connection(host='116.206.176.93',user='root',password='116.206.176.93',database='jys',charset="utf8")
# qhjy_db=Connection(host='116.206.176.93',user='root',password='116.206.176.93',database='qhjy',charset="utf8")
# wallet_db=Connection(host='116.206.176.93',user='root',password='116.206.176.93',database='wallet',charset="utf8")
jys_db=Connection(host='103.70.225.83',user='root',password='Qiqi2018.',database='jys',charset="utf8")
qhjy_db=Connection(host='103.70.225.83',user='root',password='Qiqi2018.',database='qhjy',charset="utf8")
wallet_db=Connection(host='103.70.225.83',user='root',password='Qiqi2018.',database='wallet',charset="utf8")
#连接redis
import redis
pool=redis.ConnectionPool(host="127.0.0.1",port=6379)


#flask扩展


#数据库扩展
# from flask_sqlalchemy import SQLAlchemy
# db=SQLAlchemy()
# def config_extensions(app):
#     #将这些扩展打包进flask项目
#     db.init_app(app)

